import request from '@/utils/request'

// 查询point列表
export function listPoint(query) {
  return request({
    url: '/system/point/list',
    method: 'get',
    params: query
  })
}

// 查询point详细
export function getPoint(patrolPointId) {
  return request({
    url: '/system/point/' + patrolPointId,
    method: 'get'
  })
}

// 新增point
export function addPoint(data) {
  return request({
    url: '/system/point',
    method: 'post',
    data: data
  })
}

// 修改point
export function updatePoint(data) {
  return request({
    url: '/system/point',
    method: 'put',
    data: data
  })
}

// 删除point
export function delPoint(patrolPointId) {
  return request({
    url: '/system/point/' + patrolPointId,
    method: 'delete'
  })
}
